<template>
  <!-- prevent:阻止默认行为 -->
  <!-- <button class="btn" @click.prevent="clickHandle">
    <slot></slot>
  </button> -->
  <button class="btn">
    <slot></slot>
  </button>
</template>

<script>
export default {
  name: 'HmButton',
  methods: {
    // clickHandle() {
    //   this.$emit('click')
    // }
  }
}
</script>

<style>
.btn {
  width: 100px;
  height: 50px;
  border-radius: 4px;
  background: pink;
}
</style>